<?php
// +----------------------------------------------------------------------
// | Author: 发仔 <i@fazi.me> 
// +----------------------------------------------------------------------

namespace app\admin\controller;

use think\Db;

class Passenger Extends Base
{
	
	protected $id = 'passenger_id';
	protected $table = 'passenger';
	protected $join = ['car_use cu','cu.car_use_id = m.car_use_id','left'];
	protected $field = 'm.*,cu.name AS car_use_name,cu.quota,cu.car_use_type';

	protected function options($item = []) {
		
		$used_types = config('base.used_types');
		$this->assign('car_use_types',$used_types);
		
		return $item;
	}
}	
